<template>
  <div id="app">

      <keep-alive>
          <router-view />
      </keep-alive>

     <FooterGuide v-if="$route.meta.showFooterGuide"></FooterGuide>
  </div>
</template>
<script>
  import FooterGuide from './components/FooterGuide/FooterGuide'
  import {reqFoodCategorys}  from './api/index.js'
  import {mapActions} from 'vuex'
  export default {
      components:{
          FooterGuide
      },
       mounted(){
         // reqFoodCategorys().then((result)=> {
         //     console.log(result)
         // })
           //this.$store.dispatch('getAddress')
          this.getAddress();
          this.getUserInfo()



      },
      methods:{
          ...mapActions(['getAddress','getUserInfo'])
      }
  }
</script>
<style lang="stylus">
#app
    width: 100%
    height: 100%
    background:#f5f5f5
</style>
